package com.java.mall_imooc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java.mall_imooc.common.utils.PageUtils;
import com.java.mall_imooc.common.utils.R;
import com.java.mall_imooc.entity.User;
import com.java.mall_imooc.form.UserRegisterForm;

/**
 * 用户表
 *
 * @author jl
 * @since 2020-03-14 23:41:10
 */
public interface UserService extends IService<User> {

    PageUtils queryPage(User user, Integer pageNum, Integer pageSize);

    /**
     * 注册
     */
    R register(UserRegisterForm userRegisterForm);

    /**
     * 登录
     */
    R login(String username, String password);
}

